package protocol.arq;
import java.io.BufferedWriter;

import protocol.arq.gobackN.GoBackNReceiver;
import test.Test;
import utils.advancedSocket.AdvancedSocket;

/**
 * Represente la methode <i>Automatic Repeat reQuest</i> de controle d'erreur
 * pour la tranmission de donnees lors de la reception.
 * 
 * @see GoBackNReceiver
 * @see ARQSender
 * @author Bertholet Damien & Daoust Julien
 */
public abstract class ARQReceiver extends ARQ {

	protected BufferedWriter writer;

	/**
	 * Constructeur.
	 * 
	 * @param advancedSocket
	 *            L'{@link AdvancedSocket}.
	 * @param writer
	 *            Un {@link BufferedWriter} pour ecrire les donneees recus.
	 */
	public ARQReceiver(AdvancedSocket advancedSocket, BufferedWriter writer) {
		super(advancedSocket);
		this.writer = writer;
		Test.SENDER_ERROR = false;
	}
}